OPENQASM 2.0;
include "qelib1.inc";
qreg q2[1];
qreg q3[1];
qreg q4[1];
qreg an[7];
h q2[0];
h q3[0];
x q3[0];
x an[1];
cx q3[0],an[1];
x q3[0];
ccx an[2],q2[0],an[6];
cx q2[0],an[2];
cx an[0],an[6];
ccx an[2],q3[0],an[6];
cx q3[0],an[2];
cx an[1],an[6];
x q3[0];
cx q3[0],an[1];
x an[1];
x q3[0];
x an[4];
cx an[4],an[3];
cx q2[0],an[3];
cx q3[0],an[3];
cx an[3],an[5];
x an[6];
x an[5];
ccx an[6],an[5],q4[0];
x an[6];
x an[5];
